package com.anxuan.lab2.demo1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringApplicationRunListener;
import org.springframework.context.ConfigurableApplicationContext;

public class ReadyEventListener implements SpringApplicationRunListener {
       private SpringApplication application;
       private String[] args;

       ReadyEventListener(SpringApplication application,String []args){
           this.application = application;
           this.args = args;
       }

    @Override
    public void running(ConfigurableApplicationContext context) {
        System.out.println("===回调===");
    }
}
